package com.cloudpan.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cloudpan.entity.param.FileClassifyParam;
import com.cloudpan.entity.param.TreeParam;
import com.cloudpan.entity.pojo.SysFileInfo;
import com.cloudpan.entity.vo.SysFileInfoVo;
import com.cloudpan.entity.vo.SysFileTreeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 文件信息 Mapper 接口
 * </p>
 *
 * @author Code Generator
 * @since 2023-11-07
 */
public interface SysFileInfoMapper extends BaseMapper<SysFileInfo> {

    List<SysFileTreeVo> getChildrenByParentId(@Param("query") TreeParam param, String parent);

    Page<SysFileInfoVo> listClassifyPage(Page<SysFileInfoVo> page,@Param("query") FileClassifyParam param);
}
